home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-11 | 2.7 KB | 191 lines | [TEXT/MJUA] |
- MACRO 'Macro_Covariate'
-
- begin
-
- RESET;
- GETDATA('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- selectVar(3, 4);
- setLabel(3 : 'edad'; 4 : 'grado');
- covariates(80.5, 4);
- graphplot(true);
- backColor('negro');
- estimate;
- end;
-
-
- MACRO 'Macro_Strata'
-
- begin
-
- reset;
- getdata('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- setStrata(3, 5);
- graphplot(true);
- backColor('negro');
- setOutput('basal');
- estimate;
- end;
-
-
- MACRO 'Macro_Test1'
- var
- i: integer;
-
- begin
- reset;
- getdata('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- graphPlot(false);
- setOutput('ninguna');
- for i := 3 to 5 do
- begin
- selectVar(i);
- estimate;
- end;
- end;
-
- MACRO 'Macro_Test2 [T]'
- var
- i, row, column, nvar: integer;
-
- begin
- reset;
- getdata('Put here the path to acces the file');
- get(row, column, nvar);
- setStatus(1);
- setTime(2);
- graphPlot(false);
- setOutput('ninguna');
- for i := 3 to 5 do
- begin
- set ( row , column , 0 );
- selectVar(i);
- estimate;
- end;
- end;
-
- MACRO 'Macro_CutPoint'
-
- begin
-
- reset;
- getdata('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- setCutPoint(70.5, 3);
- graphplot(true);
- backColor('blanco');
- setOutput('basal');
- estimate;
- end;
-
- macro 'Macro_MakeBins'
-
- begin
-
- reset;
- getdata('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- MakeBins(3, 3, true, 60, 70, 80);
- setStrata(4,3);
- graphplot(true);
- backColor('negro');
- estimate;
- end;
-
- MACRO 'Macro_Select'
-
- var
- edad,status,grado,stage:integer
-
- begin
- edad:= 3;
- status:= 1;
- grado:= 4;
- stage:= 5;
- RESET;
- GETDATA('Put here the path to acces the file');
- SETSTATUS(1);
- SETTIME(2);
- SELECTIF((rData[4] = 2) and (rData[5] = 3));
- estimate;
- end;
-
- MACRO 'Macro_Omit_Compute'
-
- var
- status,time,grade:integer;
-
- begin
- status:= 1;
- time:= 2;
- grade:= 4;
-
- reset;
- getdata('Put here the path to acces the file');
- setStatus(1);
- setTime(2);
- OMITIF((rData[1] = 1) and (rData[2] < 180));
- COMPUTE
- rData[2] := rData[2] - 180;
- end;
- SELECTIF(rData[2] > 0);
- graphplot(true);
- backColor('blanco');
- estimate;
- end;
-
- MACRO 'Macro_Recode'
-
- var
- grado,stage:integer;
-
- begin
- grado:= 4;
- stage:= 5;
- reset;
- getdata('HD80:Mrp Project:Data:Ejemplo.surv');
- setStatus(1);
- setTime(2);
- recode(grado:1:2;stage:2:3:9);
- MakeBins(3, 3, true, 60, 70, 80);
- end;
-
- MACRO 'Macro_Compute'
-
- var
- grado,stage,time:integer;
-
- begin
- time:= 2;
- grado:= 4;
- stage:= 5;
- reset;
- GETDATA('HD80:Mrp Project:Data:Ejemplo.surv');
- SETSTATUS(1);
- SETTIME(2);
- beep;
- COMPUTE
- {access to vars in data file with rDAta[]}
- {access to selected vars for current test with rVar[]}
- if (rDATA[4] = 2) and (rDATA[2] > 350) then rDATA[5]:= 9 else rDATA[5]:= -1;
- rData[6]:= -9;
- end;
- MAKEBINS(3, 3, true, 60, 70, 80);
- SETSTRATA(4,3);
- beep;
- ESTIMATE;
- end;
-
-
-
-
-
-
-